// const modulesFiles = require.context("./modules", true, /\.js$/);
const modulesFiles = import.meta.glob('./modules/**/*.js', { eager: true });
const directives = Object.keys(modulesFiles).reduce((modules, modulePath) => {
  const moduleName = modulePath.replace(/^\.\/.*\/(.*)\.\w+$/, "$1");
  const value = modulesFiles[modulePath];
  modules[moduleName] = value.default;
  return modules;
}, {});
console.log("directives", directives);
export default directives;
